<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>async await</title>
</head>
<body>
    
    <script>
        
        async function fn () {
            return 'hello'
        }

        async function gn () {
            let res = await fn();
            return res;
        }

        let k = gn();

        k.then(res=>{
            console.log(res);
        });
    
    </script>

</body>
</html>